interface fetchAppointmentDetailAPIResData {
  code: number
  data: AppointmentDetail
  msg: string
  time: string
}

interface fetchAppointmentDetailAPIParams {
  id: string
}

export function fetchAppointmentDetailAPI(params: fetchAppointmentDetailAPIParams, token: string) {
  return httpInstance.get<fetchAppointmentDetailAPIResData, fetchAppointmentDetailAPIParams>(
    '/api/reserve_order/detail',
    { params, headers: { token } },
  )
}
